package edu.ynu.se.xiecheng.achitectureclass.demo.controller;

import edu.ynu.se.xiecheng.achitectureclass.common.controller.LogicController;
import edu.ynu.se.xiecheng.achitectureclass.demo.dao.GreenhouseDao;
import edu.ynu.se.xiecheng.achitectureclass.demo.service.GreenhouseService;
import edu.ynu.se.xiecheng.achitectureclass.demo.entity.Greenhouse;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "大棚")
@RestController
@RequestMapping("/api/greenhouses")
public class GreenhouseController extends LogicController<GreenhouseService, GreenhouseDao, Greenhouse, Long> {

    public GreenhouseController(@Autowired GreenhouseService service) {
        super(service);
    }

}